import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { BookSharedModule } from '../../shared';
import {
    YongService,
    YongPopupService,
    YongComponent,
    YongDetailComponent,
    YongDialogComponent,
    YongPopupComponent,
    YongDeletePopupComponent,
    YongDeleteDialogComponent,
    yongRoute,
    yongPopupRoute,
    YongResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...yongRoute,
    ...yongPopupRoute,
];

@NgModule({
    imports: [
        BookSharedModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        YongComponent,
        YongDetailComponent,
        YongDialogComponent,
        YongDeleteDialogComponent,
        YongPopupComponent,
        YongDeletePopupComponent,
    ],
    entryComponents: [
        YongComponent,
        YongDialogComponent,
        YongPopupComponent,
        YongDeleteDialogComponent,
        YongDeletePopupComponent,
    ],
    providers: [
        YongService,
        YongPopupService,
        YongResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class BookYongModule {}
